package com.topsoft.micro.feign.sso;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.topsoft.micro.inter.dto.UserInfo;
import com.zzy.core.dto.CodeMsg;
import com.zzy.core.dto.Result;


/**
 * 
 * @author guokaige
 *
 */
@FeignClient(name="sso-user", fallback = SsoUserInfoServiceFallBack.class)
public interface SsoUserInfoService {
	
	@RequestMapping("/v1/user/validatePhone.json")
	Result<CodeMsg> validatePhone(@RequestParam("phone") String phone);
	
	
	
	@RequestMapping("/v1/user/validateUserName.json")
	Result<CodeMsg> validateUserName(@RequestParam("userName") String userName);
	
	
	@RequestMapping("/v1/user/save.json")
	Result<CodeMsg> saveUserInfo(@RequestBody UserInfo userInfo);

}
